/******************************************************************************
 *                                                                            *
 *               (c) 2008-2009 HutLab. All rights reserved.                   *
 *                        Eduardo Henrique Leite                              *
 *                                                                            *
 ******************************************************************************

 History:
 Created 04/01/2009

 */

package hutlab.sudoku.engine.ui;

import javax.microedition.lcdui.*;

/**
 * UI Methods class.
 */
public class UiHelper {

    /**
     * Displays an alert window.
     */
    public static void alert(Display display, String title, String message, AlertType alertType){
        Alert alert = new Alert(title, message, null, alertType);
        alert.setTimeout(Alert.FOREVER);
        Displayable screen = display.getCurrent();
        display.setCurrent(alert, screen);
    }

}
